package com.thinkmore.business.service;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.thinkmore.business.bean.Role;

import java.util.List;

import com.thinkmore.business.dao.RoleMapper;

@Service
public class RoleService {

    @Resource
    private RoleMapper roleMapper;

    public int insert(Role record) {
        return roleMapper.insert(record);
    }


    public Role selectByPrimaryKey(Integer id) {
        return roleMapper.selectByPrimaryKey(id);
    }


    public int batchInsert(List<Role> list) {
        return roleMapper.batchInsert(list);
    }

}


